let host = window.location.host;
let vcosShow = true;
let severlocaction = ''; // 接口地址
let VERIFICATION_APPID = '2013219037'; // 腾讯滑块id
let APPdownloadAndroid = 'https://oss.topbic.com/apk/ETCloud.apk';
let APPdownloadIOS = 'https://itunes.apple.com/cn/app/id1514713710?mt=8';
let ossImgUrl = 'https://oss.topbic.com/h5_images/'; // oss图片地址域名
// let tmHost = "https://www.seaio.cc/timeMachine";
let accessStatistic = 'https://oss-h5.topbic.com';
let APPID = 'wx1011eb3c4764034c';
const ENV = import.meta.env;
const VERSION = '3.4.1';
let isEncryption = true; // 开启加密
if (host.search('t.qicecloud.com') > -1) {
  // 生产环境配置
  severlocaction = 'https://api-cloud.qicecloud.com';
} else if (host.search('www.topbic.com') > -1 || host.search('oss.topbic.com') > -1) {
  // 生产环境配置
  severlocaction = 'https://gateway.topbic.com';
  accessStatistic = 'https://oss-h5.topbic.com';
  vcosShow = false;
} else if (host.search('test-k8s-qiceyun-web.peogoo.com') > -1) {
  // 测试环境
  // VERIFICATION_APPID = '2013219037' //腾讯滑块id
  // severlocaction = "https://test-k8s-qiceyun-api.peogoo.com"; // 测试环境
  severlocaction = 'https://test-k8s-qiceyun-api-gateway.peogoo.com'; // 测试环境
  // severlocaction = "https://test-k8s-qiceyun-api-new.peogoo.com"; // 测试环境
  accessStatistic = 'https://test-k8s-qiceyun-web.peogoo.com';
  APPID = 'wx0df265a6aa628a2b';
} else if (host.search('test-qcyios-web.peogoo.com') > -1) {
  // 测试环境
  severlocaction = 'https://test-k8s-qiceyun-api-new.peogoo.com'; // 孙佳乐专用
  // VERIFICATION_APPID = '2013219037' //腾讯滑块id
  accessStatistic = 'https://test-k8s-qiceyun-web.peogoo.com';
  APPID = 'wx0df265a6aa628a2b';
} else {
  // isEncryption = false;
  // 本地开发配置
  // severlocaction = "https://test-k8s-qiceyun-api.peogoo.com";
  severlocaction = '/api';
}
if (ENV.VUE_APP_ENV != 'prod') {
  // const VConsole = require('vconsole');
  // new VConsole();
  console.log('object 000:>> ', '本地开发配置');
}

export {
  severlocaction,
  VERIFICATION_APPID,
  isEncryption,
  APPdownloadAndroid,
  VERSION,
  APPdownloadIOS,
  ossImgUrl,
  accessStatistic,
  APPID,
};
